<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<script type="text/javascript">
$(document).ready(function(){
    	if(location.href.indexOf("load=detail")!=-1){
			$(":input").attr("disabled","true");
		}
    });
</script>
<div style="width: auto;height: 300px;overflow-y:auto;overflow-x:auto;">
<table cellpadding="0" cellspacing="1" class="formtable" id="xmUsableinfo_table" >
	<tbody id="add_xmUsableinfo_table" >	
	<c:if test="${fn:length(xmUsableinfoList)  <= 0 }">
			<tr>
					<input name="xmUsableinfoList[0].id" type="hidden"  value="${poVal.id}"/>
					<input name="xmUsableinfoList[0].stockId" type="hidden"  value="${poVal.stockId}"/>
			</tr>
				<tr>
				  <td align="right">
					<label class="Validform_label">
										单位:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].unit" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">单位</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										当前年份:
									</label>
					</td>
				  <td class="value">
						<input name="xmUsableinfoList[0].createTime" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">当前年份</label>
					</td>
				</tr>
				<tr>
				  <td align="right">
					<label class="Validform_label">
										去年年份:
									</label>
					</td>
				  <td class="value">
						<input name="xmUsableinfoList[0].lastyear" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">去年年份</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										当前可用天数:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].currentuse" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">当前可用天数</label>
					</td>
				</tr>
				<tr>
				  <td align="right">
					<label class="Validform_label">
										今年可用天数值:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].yearday" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">今年可用天数值</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										去年可用天数值:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].lastyearday" maxlength="32" type="text" class="inputxt"  ignore="ignore" />
					  <label class="Validform_label" style="display: none;">去年可用天数值</label>
					</td>
				</tr>
	</c:if>
	<c:if test="${fn:length(xmUsableinfoList)  > 0 }">
		<c:forEach items="${xmUsableinfoList}" var="poVal" varStatus="stuts" begin="0" end="0">
			<tr>
					<input name="xmUsableinfoList[0].id" type="hidden" value="${poVal.id}"/>
					<input name="xmUsableinfoList[0].stockId" type="hidden" value="${poVal.stockId}"/>
			</tr>
			<tr>
				  <td align="right">
					<label class="Validform_label">
										单位:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].unit" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.unit }"/>
					  <label class="Validform_label" style="display: none;">单位</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										当前年份:
									</label>
					</td>
				  <td class="value">
							<input name="xmUsableinfoList[0].createTime" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()"  ignore="ignore"  value="<fmt:formatDate value='${poVal.createTime}' type="date" pattern="yyyy-MM-dd"/>"/>
					  <label class="Validform_label" style="display: none;">当前年份</label>
					</td>
				</tr>
			<tr>
				  <td align="right">
					<label class="Validform_label">
										去年年份:
									</label>
					</td>
				  <td class="value">
							<input name="xmUsableinfoList[0].lastyear" maxlength="0" type="text" class="Wdate" onClick="WdatePicker()"  ignore="ignore"  value="<fmt:formatDate value='${poVal.lastyear}' type="date" pattern="yyyy-MM-dd"/>"/>
					  <label class="Validform_label" style="display: none;">去年年份</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										当前可用天数:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].currentuse" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.currentuse }"/>
					  <label class="Validform_label" style="display: none;">当前可用天数</label>
					</td>
				</tr>
			<tr>
				  <td align="right">
					<label class="Validform_label">
										今年可用天数值:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].yearday" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.yearday }"/>
					  <label class="Validform_label" style="display: none;">今年可用天数值</label>
					</td>
				  <td align="right">
					<label class="Validform_label">
										去年可用天数值:
									</label>
					</td>
				  <td class="value">
					  	<input name="xmUsableinfoList[0].lastyearday" maxlength="32" type="text" class="inputxt"  ignore="ignore"  value="${poVal.lastyearday }"/>
					  <label class="Validform_label" style="display: none;">去年可用天数值</label>
					</td>
				</tr>
		</c:forEach>
	</c:if>	
	</tbody>
</table>
</div>